/*
 
 
 */

#import "XBCommunityCell.h"

@implementation XBCommunityCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setViewController:(__kindof UIViewController *)viewController
{
    _viewController = viewController;
    
    // 将控制器的View添加到cell
    [self addSubview:viewController.view];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    // 控制器View大小和cell自身大小一致
    self.viewController.view.frame = self.bounds;
}
@end
